/**
 * 详情对话框
 */
var OrderInfoDlg = {
    data: {
        id: "",
        orderNum: "",
        starTime: "",
        endTime: "",
        howlong: "",
        cgId: "",
        cgStr: "",
        wp: "",
        phone: "",
        username: "",
        idCard: "",
        qid: "",
        yhje: "",
        yuanjia: "",
        shifu: "",
        paystate: "",
        state: "",
        createTime: "",
        payTime: "",
        del: "",
        uid: ""
    }
};

layui.use(['form', 'admin', 'ax','laydate','upload','formSelects'], function () {
    var $ = layui.jquery;
    var $ax = layui.ax;
    var form = layui.form;
    var admin = layui.admin;





    //获取详情信息，填充表单
    var ajax = new $ax(Feng.ctxPath + "/order/detail?id=" + Feng.getUrlParam("id"));
    var result = ajax.start();
    form.val('orderForm', result.data);
    
    var wp = result.data.wp
    
    wp = decodeURIComponent(wp)
    
    wp = JSON.parse(wp);
    var html = ''
    var arr = []
    for(var i=0;i<wp.length;i++){
    	arr.push(wp[i].name)
    }
    $("#wp").val(arr.join(','))

});